<?php
require_once('facebook.php');

$facebook = new Facebook("87c749ab2b66ec2c60f542d13647555c","a9502b949632873d575cb6242eb4d525");

$uid=$_GET["q"];
$gid = null;

$albums = $facebook->api_client->photos_getAlbums($uid,$gid);

$total = $uid."*-+";

$len = (sizeof($albums)>2?2:sizeof($albums));

for($i = 0; $i < $len; $i++){
	$total .= $albums[$i][aid]."+-*".$albums[$i][name]."+-*"."*-+";
}

echo $total;

?>